/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"EBB891F8-62AF-4AD9-A61B-CB05FB3D1638",variableType:8}
 */
var fDiasMes = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"6E67EC74-AAE7-4DB8-8562-2DFD6197A05A",variableType:8}
 */
var fDiasAnio = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"B4ADC796-BD63-4221-9D18-821DFA2758AF",variableType:8}
 */
var fDiferenciaDias = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"355083BD-6CD8-4F17-A7C8-E75E82D6D07E",variableType:93}
 */
var fFechaMenor = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"D95EB79E-1439-4BCD-A239-D519937D231A",variableType:93}
 */
var fFechaMayor = application.getServerTimeStamp();


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"711C7E7F-4D07-4F5D-89F1-FC78F012C66E"}
 */
function calcular(event) {
	fDiferenciaDias = globals.diferenciaDias(fFechaMayor,fFechaMenor)
	fDiasAnio = globals.cantDiasAnio(fFechaMayor.getFullYear())
	fDiasMes = globals.cantDiasMes(fFechaMayor.getMonth()+1,fFechaMayor.getFullYear())
}
